package com.gopay.common.user.manager.impl;

import com.gopay.common.domain.user.PwdPrismCorp;
import com.gopay.common.user.dao.PwdPrismCorpDao;
import com.gopay.common.user.manager.PwdPrismCorpManager;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 个性化信息
 * @author <a href="mailto:yhwpeng@126.com">wangdong</a>
 * @date 2017-08-17 22:05:10
 */
@Service(value = "pwdPrismCorpManager")
public class PwdPrismCorpManagerImpl implements PwdPrismCorpManager {
    protected final static Log logger = LogFactory.getLog(PwdPrismCorpManagerImpl.class);
    @Autowired
    public PwdPrismCorpDao pwdPrismCorpDao;

    @Override
    public PwdPrismCorp findById(Integer id){
        return pwdPrismCorpDao.find(PwdPrismCorp.class, id);
    }

    @Override
    public PwdPrismCorp findByCustId(String custId){
        return pwdPrismCorpDao.findByCustId(custId);
    }

    @Override
    public void editPwdPrismCorp(PwdPrismCorp info) {
        pwdPrismCorpDao.update(info);
    }

}
